import type { WebsiteConfiguration } from "@/types/server-configuration";
import type { WebResult } from "@/types/web-result";
import httpRequest from "@/utils/http";

export async function GET() {
	const websiteConfiguration = await httpRequest<WebResult<WebsiteConfiguration>>({
		url: "/api/configuration/website",
	}).then((result) => {
		return result?.data;
	});
	return new Response(JSON.stringify(websiteConfiguration));
}
